package com.ruoyi.common.service.impl;

import java.util.List;

import com.ruoyi.common.dao.MydraftMapper;
import com.ruoyi.common.entity.Mydraft;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.common.service.IMydraftService;

/**
 * VIEWService业务层处理
 * 
 * @author dustball
 * @date 2021-04-23
 */
@Service
public class MydraftServiceImpl implements IMydraftService 
{
    @Autowired
    private MydraftMapper mydraftMapper;

    /**
     * 查询VIEW
     * 
     * @param subject VIEWID
     * @return VIEW
     */
    @Override
    public Mydraft selectMydraftById(String subject)
    {
        return mydraftMapper.selectMydraftById(subject);
    }

    /**
     * 查询VIEW列表
     * 
     * @param mydraft VIEW
     * @return VIEW
     */
    @Override
    public List<Mydraft> selectMydraftList(Mydraft mydraft)
    {
        return mydraftMapper.selectMydraftList(mydraft);
    }

    /**
     * 新增VIEW
     * 
     * @param mydraft VIEW
     * @return 结果
     */
    @Override
    public int insertMydraft(Mydraft mydraft)
    {
        return mydraftMapper.insertMydraft(mydraft);
    }

    /**
     * 修改VIEW
     * 
     * @param mydraft VIEW
     * @return 结果
     */
    @Override
    public int updateMydraft(Mydraft mydraft)
    {
        return mydraftMapper.updateMydraft(mydraft);
    }

    /**
     * 批量删除VIEW
     * 
     * @param subjects 需要删除的VIEWID
     * @return 结果
     */
    @Override
    public int deleteMydraftByIds(String[] subjects)
    {
        return mydraftMapper.deleteMydraftByIds(subjects);
    }

    /**
     * 删除VIEW信息
     * 
     * @param subject VIEWID
     * @return 结果
     */
    @Override
    public int deleteMydraftById(String subject)
    {
        return mydraftMapper.deleteMydraftById(subject);
    }
}
